<?php
/**
 * Created by PhpStorm.
 * User: dung
 * Date: 11/10/14
 * Time: 11:12 AM
 */

class PEvent extends Eloquent
{

    protected $table = 'events';

    use SoftDeletingTrait;

    protected $dates = ['deleted_at'];

    public function contents()
    {
        return $this->hasMany('Contest', 'event_id');
    }

} 